<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
 <base href="<%=basePath%>">
  
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script type="text/javascript" src="js/upload.js"></script>
	
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script> 
    <script type="text/javascript">
		 $(function(){
			 $("#fileBut").click(function(){
				 $("#file").click(); 
				 })
		     $("#file").change(function(){
			  form1.fileName.value  =form1.file.value; 
			  if(!isExcel()){
				  form1.fileName.value="";
			  }
			  
			 });  
			 $("#submit").click(function(){
				 if($("#file").val()==""){
					 alert("请选择文件");
					 return false;
				 }else {
					 form1.submit(); 
				 } 
				 
			 });
			 });
		
    </script> 
</head>
<body>

 <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
    <div class="padding border-bottom">
      <form   name="form1"   method="post"   action="<%=path %>/admin/academy_addAcademy.action" enctype="multipart/form-data"  >   
      <ul class="search" style="padding-left:10px;">
        <if condition="$iscid eq 1">
          <li>
           <input  type="file" style="display:none" name="file" id="file" >
             <input type="text" placeholder="请点击导入按钮选择xls格式文件" name="fileName" class="input" style="width:250px; line-height:17px;display:inline-block"  readonly=""/>
           <a href="javascript:void(0)" class="button border-main icon-search" id="fileBut" > 导入数据</a></li>
            <a href="<%=path %>/admin/download.action?filePath=studentFile&fileName=上传学院信息模板.xls" class="button border-main icon-search" onclick="changesearch()" >导出摸板</a>
            <a href="javascript:void(0)" class="button border-main icon-search" id="submit" > 提交</a></li>
          </li>
        </if>
      </ul>
      </ul>
    </div>
    <table class="table table-hover text-center">
      <tr>
          <th>学院</th>
        <th width="25%">录入时间</th>
      </tr>
      <volist name="list" id="vo">
      <s:iterator value="#request.pageFinder.dataList" id="stu">
        <tr>
          <td><font color="#00CC99"><s:property value="#stu.academy"/></font></td>
          <td><s:property value="#stu.time"/></td>
          </tr>
   		</s:iterator>
    
   
    </table>
  </div>
</form>

</body>
</html>